package com.atwisdom.star.thirdInterface.pojo;

/**
 * @ClassName AecpGatewayResult aecp网关服务请求的返回结果类
 * @Author gsh
 * @Date 2024/7/2
 **/
public class AecpGatewayResult {
    private boolean success;

    private String content;

    private String result;

    private String errorCode;

    private String errorMsg;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getResult() {
        if (result == null) {
            return content;
        } else {
            return result;
        }
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getContent() {
        if (content == null) {
            return result;
        } else {
            return content;
        }
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "AecpGatewayResult{" +
                "success=" + success +
                ", result='" + getResult() + "'" +
        ", errorCode='" + errorCode + "'" +
        ", errorMsg='" + errorMsg + "'" +
        "}";
    }

}
